package com.iscale.model.dto;

import java.io.Serializable;
import java.util.List;

/**
 * Created by andychen83 on 2017/3/2.
 * 分页控件
 */
public class Pager<T>  implements Serializable {

    private static final long serialVersionUID = 6845233056252406745L;

    public Pager(){}

    public Pager(Integer total,List<T> rows){
        this.total = total;
        this.rows = rows;
    }
    /**
     * 记录数totalSize
     */
    private Integer total;
    /**
     * 查询结果
     */
    private List<T> rows;

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
